package cn.cdiothree.dataobject;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author CumThing
 * @since 2020-02-02
 */

/**
 * 订单物品实体类
 */
@Data
public class OrderItem implements Serializable {

    /**
     * 订单子表Id
     */
    @TableId
    private String itemId;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 商品号
     */
    private Integer Id;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 商品价格
     */
    private BigDecimal productPrice;

    /**
     * 商品图片地址
     */
    private String mainImage;


    /**
     * 商品数量
     */
    private Integer quantity;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    public OrderItem() {
    }

    public OrderItem(String itemId, String orderId, Integer id, String productName, BigDecimal productPrice, String mainImage, Integer quantity) {
        this.itemId = itemId;
        this.orderId = orderId;
        Id = id;
        this.productName = productName;
        this.productPrice = productPrice;
        this.mainImage = mainImage;
        this.quantity = quantity;
    }
}
